# 　动物类
class Animal:
    def call(self):
        print('动物叫')


class Dog(Animal):
    def call(self):
        print('旺旺')


class Cat(Animal):
    def call(self):
        print('喵喵')


class Person(Animal):
    # def call(self):
    #     print('你过来啊')
    pass


# 传统调用方式
dog = Dog()
cat = Cat()


# dog.call()
# cat.call()


# 定义统一调用接口
def do_call(obj):
    print('前面添加1')
    obj.call()
    print('后面添加2')


# 其他语言
# def do_call(obj Animal):
#     obj.call()

do_call(Dog())
do_call(Cat())
do_call(Person())
